import pylab as pl
import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt

df=pd.read_csv('tips.csv')

# sns.stripplot(x='day',y='total_bill',hue='smoker',data=df,dodge=True)
# plt.show()

#横坐标 标签顺序
# sns.boxplot(x='day',y='total_bill',data=df,order=['Thur','Fri','Sat','Sun'])
# plt.show()

# sns.boxplot(x='tip',y='day',data=df)
# sns.stripplot(x='tip',y='day',data=df,color='b')
# plt.show()

from sklearn.datasets import load_iris
data=load_iris()
x=data.data
y=data.target
x=pd.DataFrame(x,columns=['a','b','c','d'])
# cor=x.corr()
#
# sns.heatmap(cor,annot=True)
# pl.show()

sns.jointplot(x='a',y='b',data=x)
plt.show()